﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vRightGroupModule
	/// </summary>
	[Serializable]
	public class vRightGroupModule : Entity 
	{ 
		 public vRightGroupModule() 
            : base("vRightGroupModule") 
        { 

        }


		#region Model
		private string _ModuleAlias;
		private string _GroupCode;
		private string _ModuleVerb;
		private string _GroupName;
	 
		/// <summary>
		/// 
		/// </summary>
		public string ModuleAlias
		{
			get{ return _ModuleAlias; }
			set
			{
				this.OnPropertyValueChange(_.ModuleAlias,_ModuleAlias,value);
				this._ModuleAlias = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GroupCode
		{
			get{ return _GroupCode; }
			set
			{
				this.OnPropertyValueChange(_.GroupCode,_GroupCode,value);
				this._GroupCode = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModuleVerb
		{
			get{ return _ModuleVerb; }
			set
			{
				this.OnPropertyValueChange(_.ModuleVerb,_ModuleVerb,value);
				this._ModuleVerb = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GroupName
		{
			get{ return _GroupName; }
			set
			{
				this.OnPropertyValueChange(_.GroupName,_GroupName,value);
				this._GroupName = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ModuleAlias,
				_.GroupCode,
				_.ModuleVerb,
				_.GroupName
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_ModuleAlias,
				_GroupCode,
				_ModuleVerb,
				_GroupName
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "ModuleAlias":
                    this._ModuleAlias = DataHelper.ConvertValue<string>(value);
                    break; 
				case "GroupCode":
                    this._GroupCode = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ModuleVerb":
                    this._ModuleVerb = DataHelper.ConvertValue<string>(value);
                    break; 
				case "GroupName":
                    this._GroupName = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "ModuleAlias":
                    return this._ModuleAlias; 
				case "GroupCode":
                    return this._GroupCode; 
				case "ModuleVerb":
                    return this._ModuleVerb; 
				case "GroupName":
                    return this._GroupName; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vRightGroupModule");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModuleAlias = new Field("ModuleAlias","vRightGroupModule","ModuleAlias");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GroupCode = new Field("GroupCode","vRightGroupModule","GroupCode");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModuleVerb = new Field("ModuleVerb","vRightGroupModule","ModuleVerb");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GroupName = new Field("GroupName","vRightGroupModule","GroupName");
		}
		#endregion

 
	}
}

